<?php


class Vw_ticketsearch {

    /** 
     * Persistent Instance variables. This data is directly 
     * mapped to the columns of database table.
     */
    var $TicketID;
    var $CustomerID;
    var $CurrentEmpAssigned;
    var $ExpectCmpltDate;
    var $EmployeeLastName;
    var $EmployeeFirstName;
    var $EmployeeLoginID;
    var $EmployeeRole;
    var $CustomerLastName;
    var $CustomerFirstName;
    var $CustomerPhoneNumber;



    /** 
     * Constructors. DaoGen generates two constructors by default.
     * The first one takes no arguments and provides the most simple
     * way to create object instance. The another one takes one
     * argument, which is the primary key of the corresponding table.
     */

    function Vw_ticketsearch () {

    }

    /* function Vw_ticketsearch ($TicketIDIn) {

          $this->TicketID = $TicketIDIn;

    } */


    /** 
     * Get- and Set-methods for persistent variables. The default
     * behaviour does not make any checks against malformed data,
     * so these might require some manual additions.
     */

    function getTicketID() {
          return $this->TicketID;
    }
    function setTicketID($TicketIDIn) {
          $this->TicketID = $TicketIDIn;
    }

    function getCustomerID() {
          return $this->CustomerID;
    }
    function setCustomerID($CustomerIDIn) {
          $this->CustomerID = $CustomerIDIn;
    }

    function getCurrentEmpAssigned() {
          return $this->CurrentEmpAssigned;
    }
    function setCurrentEmpAssigned($CurrentEmpAssignedIn) {
          $this->CurrentEmpAssigned = $CurrentEmpAssignedIn;
    }

    function getExpectCmpltDate() {
          return $this->ExpectCmpltDate;
    }
    function setExpectCmpltDate($ExpectCmpltDateIn) {
          $this->ExpectCmpltDate = $ExpectCmpltDateIn;
    }

    function getEmployeeLastName() {
          return $this->EmployeeLastName;
    }
    function setEmployeeLastName($EmployeeLastNameIn) {
          $this->EmployeeLastName = $EmployeeLastNameIn;
    }

    function getEmployeeFirstName() {
          return $this->EmployeeFirstName;
    }
    function setEmployeeFirstName($EmployeeFirstNameIn) {
          $this->EmployeeFirstName = $EmployeeFirstNameIn;
    }

    function getEmployeeLoginID() {
          return $this->EmployeeLoginID;
    }
    function setEmployeeLoginID($EmployeeLoginIDIn) {
          $this->EmployeeLoginID = $EmployeeLoginIDIn;
    }

    function getEmployeeRole() {
          return $this->EmployeeRole;
    }
    function setEmployeeRole($EmployeeRoleIn) {
          $this->EmployeeRole = $EmployeeRoleIn;
    }

    function getCustomerLastName() {
          return $this->CustomerLastName;
    }
    function setCustomerLastName($CustomerLastNameIn) {
          $this->CustomerLastName = $CustomerLastNameIn;
    }

    function getCustomerFirstName() {
          return $this->CustomerFirstName;
    }
    function setCustomerFirstName($CustomerFirstNameIn) {
          $this->CustomerFirstName = $CustomerFirstNameIn;
    }

    function getCustomerPhoneNumber() {
          return $this->CustomerPhoneNumber;
    }
    function setCustomerPhoneNumber($CustomerPhoneNumberIn) {
          $this->CustomerPhoneNumber = $CustomerPhoneNumberIn;
    }



    /** 
     * setAll allows to set all persistent variables in one method call.
     * This is useful, when all data is available and it is needed to 
     * set the initial state of this object. Note that this method will
     * directly modify instance variales, without going trough the 
     * individual set-methods.
     */

    function setAll($TicketIDIn,
          $CustomerIDIn,
          $CurrentEmpAssignedIn,
          $ExpectCmpltDateIn,
          $EmployeeLastNameIn,
          $EmployeeFirstNameIn,
          $EmployeeLoginIDIn,
          $EmployeeRoleIn,
          $CustomerLastNameIn,
          $CustomerFirstNameIn,
          $CustomerPhoneNumberIn) {
          $this->TicketID = $TicketIDIn;
          $this->CustomerID = $CustomerIDIn;
          $this->CurrentEmpAssigned = $CurrentEmpAssignedIn;
          $this->ExpectCmpltDate = $ExpectCmpltDateIn;
          $this->EmployeeLastName = $EmployeeLastNameIn;
          $this->EmployeeFirstName = $EmployeeFirstNameIn;
          $this->EmployeeLoginID = $EmployeeLoginIDIn;
          $this->EmployeeRole = $EmployeeRoleIn;
          $this->CustomerLastName = $CustomerLastNameIn;
          $this->CustomerFirstName = $CustomerFirstNameIn;
          $this->CustomerPhoneNumber = $CustomerPhoneNumberIn;
    }


    /** 
     * hasEqualMapping-method will compare two Vw_ticketsearch instances
     * and return true if they contain same values in all persistent instance 
     * variables. If hasEqualMapping returns true, it does not mean the objects
     * are the same instance. However it does mean that in that moment, they 
     * are mapped to the same row in database.
     */
    function hasEqualMapping($valueObject) {

          if ($valueObject->getTicketID() != $this->TicketID) {
                    return(false);
          }
          if ($valueObject->getCustomerID() != $this->CustomerID) {
                    return(false);
          }
          if ($valueObject->getCurrentEmpAssigned() != $this->CurrentEmpAssigned) {
                    return(false);
          }
          if ($valueObject->getExpectCmpltDate() != $this->ExpectCmpltDate) {
                    return(false);
          }
          if ($valueObject->getEmployeeLastName() != $this->EmployeeLastName) {
                    return(false);
          }
          if ($valueObject->getEmployeeFirstName() != $this->EmployeeFirstName) {
                    return(false);
          }
          if ($valueObject->getEmployeeLoginID() != $this->EmployeeLoginID) {
                    return(false);
          }
          if ($valueObject->getEmployeeRole() != $this->EmployeeRole) {
                    return(false);
          }
          if ($valueObject->getCustomerLastName() != $this->CustomerLastName) {
                    return(false);
          }
          if ($valueObject->getCustomerFirstName() != $this->CustomerFirstName) {
                    return(false);
          }
          if ($valueObject->getCustomerPhoneNumber() != $this->CustomerPhoneNumber) {
                    return(false);
          }

          return true;
    }



    /**
     * toString will return String object representing the state of this 
     * valueObject. This is useful during application development, and 
     * possibly when application is writing object states in textlog.
     */
    function toString() {
        $out = $out."\nclass Vw_ticketsearch, mapping to table vw_ticketsearch\n";
        $out = $out."Persistent attributes: \n"; 
        $out = $out."TicketID = ".$this->TicketID."\n"; 
        $out = $out."CustomerID = ".$this->CustomerID."\n"; 
        $out = $out."CurrentEmpAssigned = ".$this->CurrentEmpAssigned."\n"; 
        $out = $out."ExpectCmpltDate = ".$this->ExpectCmpltDate."\n"; 
        $out = $out."EmployeeLastName = ".$this->EmployeeLastName."\n"; 
        $out = $out."EmployeeFirstName = ".$this->EmployeeFirstName."\n"; 
        $out = $out."EmployeeLoginID = ".$this->EmployeeLoginID."\n"; 
        $out = $out."EmployeeRole = ".$this->EmployeeRole."\n"; 
        $out = $out."CustomerLastName = ".$this->CustomerLastName."\n"; 
        $out = $out."CustomerFirstName = ".$this->CustomerFirstName."\n"; 
        $out = $out."CustomerPhoneNumber = ".$this->CustomerPhoneNumber."\n"; 
        return $out;
    }


    /**
     * Clone will return identical deep copy of this valueObject.
     * Note, that this method is different than the clone() which
     * is defined in java.lang.Object. Here, the retuned cloned object
     * will also have all its attributes cloned.
     */
    function clone1() {
        $cloned = new Vw_ticketsearch();

        $cloned->setTicketID($this->TicketID); 
        $cloned->setCustomerID($this->CustomerID); 
        $cloned->setCurrentEmpAssigned($this->CurrentEmpAssigned); 
        $cloned->setExpectCmpltDate($this->ExpectCmpltDate); 
        $cloned->setEmployeeLastName($this->EmployeeLastName); 
        $cloned->setEmployeeFirstName($this->EmployeeFirstName); 
        $cloned->setEmployeeLoginID($this->EmployeeLoginID); 
        $cloned->setEmployeeRole($this->EmployeeRole); 
        $cloned->setCustomerLastName($this->CustomerLastName); 
        $cloned->setCustomerFirstName($this->CustomerFirstName); 
        $cloned->setCustomerPhoneNumber($this->CustomerPhoneNumber); 

        return $cloned;
    }


}

?>

